package com.lzcangqiong.design.patterns.factory.simple;

import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;

/**
 * 水果消费者
 * Created by luozhen on 2018/6/13.
 */
public class FruitCustomer {

    public void eatFruit(String type) throws BadFruitException {
        Fruit fruit = FruitGardener.factory(type);
        System.out.print("我正在吃水果：" + fruit);

        TimeZone zone = TimeZone.getDefault();
        Calendar.getInstance(zone);
    }
}
